package com.bwie.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @Author: liuzhuan
 * @Date:  2025/7/28 08:57
 * @Description: ToDo
 **/

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_logs")
public class Logs implements Serializable {
    @TableId(value = "log_id", type = IdType.AUTO)
    private Integer logId;

    @TableField(value = "log_name")
    @NotBlank
    @Size(min = 2,max = 5,message = "长度在2-5之间")
    private String logName;

    @TableField(value = "create_by")
    private String createBy;

    @TableField(value = "create_time")
    private Date createTime;

    private static final long serialVersionUID = 1L;
}